import 'package:flutter/material.dart';

class EntePage extends StatefulWidget {
  const EntePage({super.key});

  @override
  State<EntePage> createState() => _EntePageState();
}

class _EntePageState extends State<EntePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(title: const Text('首页页面')),
        body: Column(
          children: [
            ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, '/form',
                    arguments: {'str': '这是str'});
              },
              child: const Text('跳转form'),
            ),
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, '/news');
              },
              child: const Text('跳转news'),
            ),
            const SizedBox(height: 20),
            ElevatedButton(
              onPressed: () {
                Navigator.pushNamed(context, '/search');
              },
              child: const Text('跳转search'),
            )
          ],
        ));
  }
}
